***Replication Files for Jakana L. Thomas. 2023. ``Sisters Are Doing it for Themselves: How Female Combatants Help Generate Gender-Inclusive Peace Agreements in Civil Wars" at American Political Science Review.***

use Thomas_APSR_2023.dta, clear


label variable cat4_prevalence_best "Female Combat Prevalence"
label variable exc_eq "Women's Equality"
label variable Allddr "Gender-Inclusive DDR/Rehab"
label variable WINGOImputed_fill "Women's INGOs"
label variable  v2x_gencs "Women's Civil Society Participation"
label variable  v2x_gencl "Womens Civil Liberties"     
label variable nonvprotgovt "Number of Anti-state Women's Protests"
label variable lgt "Agreement Length"
label variable  substantive "Substantive Agreement"
label variable  ideolleft "Leftist Rebel Ideology"
label variable religious "Religious Rebel Ideology"
label variable UNintervention "UN Involvement"
label variable majpowintervention "Major Power Involvement"
label variable UNwomen "UN Women Office"
label variable eqgen_binary "Equality Provision"
label variable ssrddr_binary "DDR provision"
*label define ordinal 0 "None" 1 "Low" 2 "Moderate" 3 "High"
label values cat4_prevalence_best ordinal
label variable Krause_wpm_neg "Women Signatories"
 
*Table 1, Model 1
logit exc_eq cat4_prevalence_best  if interstateonly==0 &inter_intrastate==0, cluster (cowcode)
estimates store m1
*Table 1, Model 2
logit exc_eq cat4_prevalence_best  nonvprotgovt v2x_gencs WINGOImputed_fill  UNintervention majpowintervention  UNwomen  religious ideolleft  lgt substantive  v2x_gencl Krause_wpm_neg  eqgen_binary if interstateonly==0 &inter_intrastate==0, cluster (cowcode)

margins, at(cat4_prevalence_best=(0 (1) 3)) level(95) 
estimates store m2
*Figure 1A
marginsplot, ytitle(Probability of Gender-Inclusive Equality Provision) recastci(rarea) allxlabels   
graph save "Graph" "Figure 1a.gph", replace

*Table 1, Model 3
logit Allddr cat4_prevalence_best  if interstateonly==0 &inter_intrastate==0, cluster (cowcode)
estimates store m3
*Table 1, Model 4
logit Allddr cat4_prevalence_best  nonvprotgovt v2x_gencs WINGOImputed_fill  UNintervention majpowintervention  UNwomen  religious ideolleft  lgt substantive  v2x_gencl Krause_wpm_neg  ssrddr_binary if interstateonly==0 &inter_intrastate==0, cluster (cowcode)
margins, at(cat4_prevalence_best=(0 (1) 3)) level(95)
estimates store m4
*Figure 1B 
marginsplot, ytitle(Probability of Gender-Inclusive Reintegration/Rehabilitation Provision) recastci(rarea) allxlabels   
graph save "Graph" "Figure 1b.gph", replace

esttab  m1 m2 m3 m4 using "table1.tex", replace se label scalars(bic aic) star(* 0.10 ** 0.05 *** 0.01)  title(Logistic Regression Analyses Examining the Effect of Female Combatant Prevalence on Gender-Inclusive Peace Agreement Provisions)    

graph combine "Figure 1a.gph" "Figure 1b.gph" 


